package comm

import "errors"

type Err struct {
	Code  int
	Error error
}

func NewError(code int, msg string) *Err {
	return &Err{Code: code, Error: errors.New(msg)}
}

const (
	ErrorTokenNotSet = 1000
	ErrorTokenDel    = 1001
	ErrorParamFormat = 1002
	ErrorNotExist    = 1003
	ErrorExist       = 1004
)
